<template>
  <a-tag :color="TagColor[props.value]">{{ getDescByValue('GOODS_TYPE_ENUM', Number(props.value)) }}</a-tag>
</template>
<script setup lang="ts">
import { useEnums } from '@/hooks/plugins/useEnums'
const { getDescByValue } = useEnums()
enum TagColor {
  'error' = 1,
  'warning',
  'processing',
  'success',
  'cyan',
  'orange'
}
const props = defineProps<{
  value: 1 | 2 | 3 | 4 | 5 | 6
}>()
</script>
